Skip to content

Conversation

@clason
Copy link
Contributor

@clason clason commented Nov 6, 2025

Optional for now; can be run locally with make luacheck. (I just want to see how bad this is going to be...)

Also fix the lint workflow:

  • no need to run as root
  • format ALL THE FILES (there are Lua files outside /lua these days)

@clason
Copy link
Contributor Author

clason commented Nov 6, 2025

Diagnosis complete, 2349 problems found

...pretty bad.

@clason clason force-pushed the ci/luals branch 2 times, most recently from 5707890 to cf19759 Compare November 6, 2025 15:31
@Conni2461
Copy link
Member

yeah, we dont have typing, luals wasnt that mature back then 😅

@clason
Copy link
Contributor Author

clason commented Nov 6, 2025

I guess all these luacats annotations we have are for something different then ;)


stylua:
name: stylua
name: Stylua
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: This requires adapting the branch protection (required checks are case sensitive).

@clason clason marked this pull request as draft November 6, 2025 15:38
@clason
Copy link
Contributor Author

clason commented Nov 6, 2025

yeah, we dont have typing, luals wasnt that mature back then 😅

Since we're basically starting from scratch, we might as well switch to emmyluals already, which is quite a bit faster and has better support for generics. (It's also quite a bit stricter and still has some rough edges, and the Nvim runtime itself is not fully emmyluals compliant, which may be a problem.)

@Conni2461
Copy link
Member

I guess all these luacats annotations we have are for something different then ;)

annotations where used for doc generation, not type hints: https://github.com/tjdevries/tree-sitter-lua/blob/master/HOWTO.md but i think that one broke 2 years ago

@clason
Copy link
Contributor Author

clason commented Nov 6, 2025

Yeah, I noticed on another PR (which is what started this whole rampage) ;)

@clason
Copy link
Contributor Author

clason commented Nov 6, 2025

emmyluals has a docgen CLI; that could be another argument for switching, if we have to replace tools anyway.

Optional for now; can be run locally with `make luacheck`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants